package com.icedbrew.appfuel.persistence.service;

import com.icedbrew.appfuel.persistence.entity.BaseEntity;

import java.util.List;

/**
 * @author
 */
public interface IPersistenceService<E extends BaseEntity> {
    void addOrUpdate(E entity);

    void delete(E entity);

    void deleteById(Long id);

    E findById(Long id);

    List<E> findAll();

    List<E> findBatch(int start, int size);

    Long countAll();
}
